import * as THREE from "three";
import { threeViewStore } from "../../store/models/data";
import pinia from '../../store/index';
const store = threeViewStore(pinia);
export function boxHelper(vis:any) {
    if (vis) {
        const box = new THREE.BoxHelper(window.meshObj, 0xffff00);
        window.threeScene.add(box);
    }
    else {
        // 卸载包围盒
        window.threeScene.traverse((child) => {
            if(child.type==="BoxHelper"){
                window.threeScene.remove(child);
            }
        })
    }

}